package Box2D.Dynamics.Joints
{
	import Box2D.Common.Math.b2Vec2;

	public class b2PrismaticJoint extends b2Joint
	{
		public function b2PrismaticJoint(wrapper:Object=null)
		{
			super(wrapper);
		}
		public function GetJointTranslation():Number{
			return call('b2PrismaticJoint_GetJointTranslation')
		}
		public function GetJointSpeed():Number{
			return call('b2PrismaticJoint_GetJointSpeed');
		}
		public function IsLimitEnabled():Boolean{
			return call('b2PrismaticJoint_IsLimitEnabled');			
		}
		public function EnableLimit(flag:Boolean):void{
			call('b2PrismaticJoint_EnableLimit',flag);			
		}
		public function GetLowerLimit():Number{
			return call('b2PrismaticJoint_GetLowerLimit');
		}
		public function GetUpperLimit():Number{
			return call('b2PrismaticJoint_GetUpperLimit');
		}
		public function SetLimits(lower:Number,upper:Number):void{
			call('b2PrismaticJoint_SetLimits',lower,upper);
		}
		public function IsMotorEnabled():Boolean{
			return call('b2PrismaticJoint_IsMotorEnabled');
		}
		public function EnableMotor(flag:Boolean):void{
			call('b2PrismaticJoint_EnableMotor',flag);
		}
		public function SetMotorSpeed(speed:Number):void{
			call('b2PrismaticJoint_SetMotorSpeed',speed);
		}
		public function GetMotorSpeed():Number{
			return call('b2PrismaticJoint_GetMotorSpeed');
		}
		public function SetMaxMotorForce(force:Number):void{
			call('b2PrismaticJoint_SetMaxMotorForce',force);
		}
		public function GetMotorForce(inv_dt:Number):Number{
			return call('b2PrismaticJoint_GetMotorForce',inv_dt);
		}
	}
}